package fr.vvins.core.biz.catalog.dto;

import java.io.Serializable;

import fr.vvins.core.catalog.entity.Sku;
import fr.vvins.core.common.dto.BeanDtoImpl;
import fr.vvins.core.common.dto.annotation.Dto;

/**
 * Sku entity
 */
@Dto(name="Sku", entity=Sku.class)
public class SkuDto extends BeanDtoImpl implements Serializable {

	private static final long serialVersionUID = 6923164640325755909L;
	private ProductDto parentProduct;
	private String name;
	private String type;
	private Long price;

	public SkuDto() {
	}

	public SkuDto(Integer id, ProductDto parentProduct) {
		this.id = id;
		this.parentProduct = parentProduct;
	}

	public SkuDto(Integer id, ProductDto parentProduct, String name, String type) {
		this.id = id;
		this.parentProduct = parentProduct;
		this.name = name;
		this.type = type;
	}
	
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public ProductDto getParentProduct() {
		return parentProduct;
	}

	public void setParentProduct(ProductDto parentProduct) {
		this.parentProduct = parentProduct;
	}

	public Long getPrice() {
		return price;
	}

	public void setPrice(Long price) {
		this.price = price;
	}

}
